package controllers_user

import (
	"github.com/astaxie/beego"
)

type UserController struct {
	beego.Controller
}

func (this *UserController) URLMapping() {
	this.Mapping("Userindex", this.Userindex)
	this.Mapping("Useredit", this.Useredit)
	this.Mapping("Useradd", this.Useradd)
	this.Mapping("Useredel", this.Userdel)
	this.Mapping("Useresave", this.Usersave)
}

// @router /user/config/index [post]
func (this *UserController) Userindex() {
	this.TplName = "usermanager/usermanager.html"
}

// @router /user/config/edit [post]
func (this *UserController) Useredit() {
	this.TplName = "usermanager/usermanager_form.html"
}

// @router /user/config/add [post]
func (this *UserController) Useradd() {
	this.TplName = "usermanager/usermanager_form.html"
}

// @router /user/config/del [post]
func (this *UserController) Userdel() {
	this.TplName = "usermanager/usermanager.html"
}

// @router /user/config/save [post]
func (this *UserController) Usersave() {
	this.TplName = "usermanager/usermanager.html"
}
